package com.bee.common.core.jsonview;



/**
 * 数据权限级别
 */
public class JsonViews {
	
	public static class BaseView {
		@Override
		public String toString() {
			return this.getClass().getCanonicalName();
		}
	}

	public static class Internal extends BaseView {}    //共有级别

	public static class Summary extends Internal {}  //统计级别

	public static class Group extends Summary {}  //组内级别

	public static class Private extends Group {}   //私有级别

	public static class Public extends Private {}  //所有的可以看到

	public static DataWithView get(Object data, Class<? extends BaseView> view){
		return new DataWithView(data, view);
	}
}
